<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ page isELIgnored="false" %>
<script type="text/javascript" src="http://ajax.microsoft.com/ajax/jquery/jquery-1.4.min.js"></script>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>商家管理控制台</title>
<link rel="shortcut icon" href="${pageContext.request.contextPath}/images/favicon.ico" type="image/x-icon" />
       <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/identify.css" />
		<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/layout.css" />
		<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/account.css" />
		<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/style.css" />
		<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/control_index.css" />
		<script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery-1.7.2.min.js"></script>
		<script type="text/javascript" src="${pageContext.request.contextPath}/js/haidao.offcial.general.js"></script>
		<script type="text/javascript" src="${pageContext.request.contextPath}/js/select.js"></script>
		<script type="text/javascript" src="${pageContext.request.contextPath}/js/haidao.validate.js"></script>		
<script type="text/javascript"> 
$(document).ready(function(){
$(".flip").click(function(){
    $(".panel").slideToggle(1000);
	$(".img").slideToggle("slow");
  });
});
</script>
<style type="text/css"> 
div.panel,p.flip
{
margin:0px;
padding:5px;
text-align:left;
background:#f2f2f2;
border:solid 1px #c3c3c3;
}
div.panel
{
height:450px;
display:none;
}
</style>
</head>
<body>
      <div class="view-topbar">
			<div class="topbar-console">
				<div class="tobar-head fl">
					<a href="#" class="topbar-logo fl">
					<span><img src="${pageContext.request.contextPath}/images/logo.png" width="20" height="20"/></span>
					</a>
					<a href="${pageContext.request.contextPath}/pages/index.jsp" class="topbar-home-link topbar-btn text-center fl"><span>商户管理控制台</span></a>
				</div>
			</div>
			<div class="topbar-info">
				<ul class="fr">
					<li class="fl topbar-info-item">
					<div class="dropdown">
						<a href="#" class="topbar-btn">
						<span class="fl text-normal">${sessionScope.saleAccount.saleAccount }</span>
						<span class="icon-arrow-down"></span>
						</a>
						<ul class="dropdown-menu">
							<li><li><a href="${pageContext.request.contextPath}/saleAccount/logout">注销</a></li>
						</ul>
					</div>
					</li>
				</ul>
			</div>
		</div>
		<div class="view-body">
			<div class="view-sidebar">
				<div class="sidebar-content">
					<div class="sidebar-nav ">
						<div class="sidebar-title">
							<a href="#">
								<span class="icon"><b class="fl icon-arrow-down"></b></span>
								<span class="text-normal">权限申请</span>
							</a>
						</div>
						<ul class="sidebar-trans">
						<li>
							<a href="<%=request.getContextPath()%>/sale/infoShow">
								<b class="sidebar-icon"><img src="${pageContext.request.contextPath}/images/icon_message.png" width="16" height="16" /></b>
								<span class="text-normal">申请入驻</span>
							</a>
						</li>
						</ul>
					</div>
					<div class="sidebar-nav">
						<div class="sidebar-title">
							<a href="#">
								<span class="icon"><b class="fl icon-arrow-down"></b></span>
								<span class="text-normal">商品中心</span>
							</a>
						</div>
						<ul class="sidebar-trans">
							<li>
								<a href="${pageContext.request.contextPath}/goods/goods">
									<b class="sidebar-icon"><img src="${pageContext.request.contextPath}/images/icon_author.png" width="16" height="16" /></b>
									<span class="text-normal">商品管理</span>
								</a>
							</li>
							<li>
								<a href="${pageContext.request.contextPath}/goods/toAdd">
									<b class="sidebar-icon"><img src="${pageContext.request.contextPath}/images/icon_author.png" width="16" height="16" /></b>
									<span class="text-normal">商品添加</span>
								</a>
							</li>
						</ul>
					</div>
					<div class="sidebar-nav">
						<div class="sidebar-title">
							<a href="#">
								<span class="icon"><b class="fl icon-arrow-down"></b></span>
								<span class="text-normal">个人中心</span>
							</a>
						</div>
						<ul class="sidebar-trans">
						<li>
							<a href="${pageContext.request.contextPath}/saleInfo/getSaleInfo">
								<b class="sidebar-icon"><img src="${pageContext.request.contextPath}/images/icon_order.png" width="16" height="16" /></b>
								<span class="text-normal">个人信息</span>
							</a>
						</li>
						
						</ul>
					</div>
					<div class="sidebar-nav">
						<div class="sidebar-title">
							<a href="#">
								<span class="icon"><b class="fl icon-arrow-down"></b></span>
								<span class="text-normal">子账号中心</span>
							</a>
						</div>
						<ul class="sidebar-trans">
						<li>
							<a href="${pageContext.request.contextPath}/babyAccount/newQuery">
								<b class="sidebar-icon"><img src="${pageContext.request.contextPath}/images/icon_cost.png" width="16" height="16" /></b>
								<span class="text-normal">子账号查询</span>
							</a>
						</li>
						<li>
							<a href="${pageContext.request.contextPath}/babyAccount/toAdd">
								<b class="sidebar-icon"><img src="${pageContext.request.contextPath}/images/icon_cost.png" width="16" height="16" /></b>
								<span class="text-normal">子账号添加</span>
							</a>
						</li>
						</ul>
					</div>
					<div class="sidebar-nav">
						<div class="sidebar-title">
							<a href="#">
								<span class="icon"><b class="fl icon-arrow-down"></b></span>
								<span class="text-normal">订单管理</span>
							</a>
						</div>
						<ul class="sidebar-trans">
						<li>
							<a href="${pageContext.request.contextPath}/saleOrder/saleOrderList">
								<b class="sidebar-icon"><img src="${pageContext.request.contextPath}/images/icon_gold.png" width="16" height="16" /></b>
								<span class="text-normal">订单查询</span>
							</a>
						</li>
						</ul>
					</div>
				</div>
			</div>
		 
		 
		 
		<div class="view-product">
		    <div class="authority">
			   <div class="authority-head">
				 <div class="manage-head">
					<h6 class="layout padding-left manage-head-con">子账号管理
					</h6>
				</div>
			</div>
			

					
					<div class="authority-content" >
						<div class="list-content show">
							<div class="offcial-table tr-border margin-big-top clearfix">
								<div class="tr-th clearfix">
									<div class="th w20">
										账号编号
									</div>
									<div class="th w20">
										账号名称
									</div>
									<div class="th w20">
										账户角色
									</div>
									<div class="th w20">
										账户状态
									</div>
									<div class="th w20">
										账号管理
									</div>
								</div>
								
								
								<c:forEach items="${list}" var="em" varStatus="a">
								<div class="tr clearfix border-bottom-none">
									<div class="td w20">
										 ${em.number}
									</div>
									<div class="td w20">
										${em.babyAccountName}
									</div>
									<div class="td w20">
										${em.babyDescription}
									</div>
									<div class="td w20">
										<c:if test="${em.babyValid==1}">启用中</c:if>
										<c:if test="${em.babyValid==0}">停用中</c:if>
									</div>
									<div class="td w20">
										<a href="${pageContext.request.contextPath}/babyAccount/toUpdate?babyId=${em.babyId}" class="button-word2 btn_ajax_confirm">编辑</a>
										<a href="${pageContext.request.contextPath}/babyAccount/toDelete?babyId=${em.babyId}" class="button-word2 btn_ajax_confirm" onclick="deleteWaring()">删除</a>
									</div>
						</c:forEach>

				  </div>
			   </div>
			</div>
				             
				             
				     
		                           
	    <div class="show-page padding-big-right">
							<div class="page">
								<div class="page">
									<ul class="offcial-page margin-top margin-big-right">
										<li>共<em class="margin-small-left margin-small-right">1</em>条数据</li>
										<li>每页显示<em class="margin-small-left margin-small-right">15</em>条</li>
										<li><a class="next disable">上一页</a></li>
										<li></li>
										<li><a class="next disable">下一页</a></li>
										<li><span class="fl">共<em class="margin-small-left margin-small-right">1</em>页</span></li>
									</ul>
								</div>
							</div>
						</div>
					<br>
					</div>
	    </div>
	  </div>
	</div>
<p class="flip"><strong>温馨提示(点击查看)</strong></p>
<div class="panel">
					<div class="test">
	  					<P class="padding-left manage-head-con">欢迎登录子账号管理系统，我们将为您提供最优质的服务，关于子账号的最新功能，请随时关注我们的推送消息！</P>
						<br><br>
						<p><h6 class="padding-left manage-head-con">大武汉推送:</h6></p><br>
						<div>
						<P class="layout padding-left manage-head-con">
							1.“春无三日晴”，老天爷说翻脸就翻脸，昨天大风、大雨齐上阵。数据显示昨天17时江城气温只有16.7℃，比前一天同时段气温下跌近10℃。不过今天起风雨渐息，艳阳天再现。<br><br>
						</P>
						<br>
						<p class="layout padding-left manage-head-con">
							2.武汉是国家历史文化名城，楚文化和中国民主革命的重要发祥地。在距今8000-6000年前的新石器时代，已有先民在此繁衍生息。武汉北郊的盘龙城遗址筑于商代，距今约有3500年历史。武昌起义作为辛亥革命的开端，对中国历史具有重要意义。清末洋务运动，刺激了武汉工业兴起和经济发展，使武汉成为近代中国重要的经济中心。
						</p>
						<br>
						<br>
						<img src="${pageContext.request.contextPath}/images/wuhan.jpg">
					    </div>
					</div>
</div>
		<!-- 下拉功能 --> 
      <script>
			$(".sidebar-title").live('click', function() {
				if ($(this).parent(".sidebar-nav").hasClass("sidebar-nav-fold")) {
					$(this).next().slideDown(200);
					$(this).parent(".sidebar-nav").removeClass("sidebar-nav-fold");
				} else {
					$(this).next().slideUp(200);
					$(this).parent(".sidebar-nav").addClass("sidebar-nav-fold");
				}
			});
	</script>
	
	<script>
		function deleteWaring(){
			var msg="Are You Sure Delete This BabyAccount";
			if(confirm(msg) == true){
			}else{
				alert("Delete Fairlure")
				return false;
			}
		}
	</script>
	
	<script type="text/javascript">
		$(document).ready(function(){
			$("a").mouseover(function(){
				alter("Are you sure");
				$("p").hide();
			})
		
			$(".test.hide").click(function(){
				$(this).parents(".test").hide("slow");
			});
		})
		
		/*隐藏*/
		$(".test.hide").click(function(){
			$(this).parents(".test").hide("slow");
		});
	</script>
	
	<script>
		$(document).ready(function(){
			$(".test.hide").click(function(){
				$(this).parents(".test").hide("slow");
			});
		});
	</script>	
</body>
</html>